export const defaultState = {
  version: ''
};

const version = (state = defaultState, action) => {
  switch(action.type) {
    case 'SET_VERSION':
      return { ...state, version: action.version };

    default:
      return state;
  }
}

export default version;
